<template>
  <component :is="LayoutComponents[themeConfig.layout]" />
</template>

<script setup lang="ts" name="layout">
import { computed, type Component } from 'vue'
import { GlobalStore } from '@/store'
import LayoutVertical from './LayoutVertical/index.vue'

const LayoutComponents: { [key: string]: Component } = {
  vertical: LayoutVertical,
}

const globalStore = GlobalStore()
const themeConfig = computed(() => globalStore.themeConfig)
</script>

<style scoped lang="scss">
.layout {
  min-width: 760px;
}
</style>
